package net.njcp.spi.api;

import net.njcp.spi.selector.DefaultSelector;
import net.njcp.spi.selector.api.ISelector;

import java.lang.annotation.*;

/**
 * @ClassName Spi
 * @Description: TODO
 * @Author 柳拓
 * @Date 2019/8/6
 * @Version V1.0
 **/
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface Spi {
    /*
     * @MethodName:
     * @Description: 加入选择器参数，方便用户扩展自己的选择方式
     * @Param:
     * @Return:
     * @Author: 柳拓
     * @Date: 下午5:37
     **/
    Class<? extends ISelector> selector() default DefaultSelector.class;
}
